/*
  Programa Wifis, 2010-2011
  Autor: Nilhcraiv

This file is part of Wifis.

    Wifis is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Wifis is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Wifis.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DISPLAYINFORMATION_H
#define DISPLAYINFORMATION_H

#include <QVector>
#include <QString>
#include <QStandardItemModel>

class displayInformation
{
public:
    displayInformation(QVector <QString> *networks);
    QStandardItemModel* getModel();

    bool isCheck(int numElement,QStandardItemModel *model);

private:
    //Variables
    QStandardItemModel *model;
    QVector <QString> *saveNetworks;

    //Functions
    QStandardItemModel* createModel(QVector <QString> vectorNetworks);
    QStandardItem* crearElemento(QString nombre,bool checkTable);
    inline void deleteItemsFromModel() {this->model->setRowCount(0);}
};

#endif // DISPLAYINFORMATION_H
